#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:exercise3.py
# author:wmf
# datetime:2021/3/27 13:01
# software: PyCharm
'''
this is function description
'''
# import module your need

# 读取文件里面的内容(包含中文), 进行打印输出显示;
#          注意:  请设置文件的不同编码格式进行观察;  另外,文件内容中包含中文字符;

import os

file = open('test.txt','rb')
data = file.read().decode('gbk').encode('utf-8')
print(data)
file.close()

file = open('test.txt','r',encoding='gbk')
data = file.read()
print(data)
file.close()
